pandas if value present in df index

28

i = 'g'
if i in df.index:
  print(i)

Comments

Submit
0 Comments